#include<stdio.h>

void not_init(){
  int *p;
  *p = 1;
  printf("*p = %d\n", *p);
}

void null_value(){
  int *p = NULL;
  printf("p(NULL) = %p\n", p);
}

void pointer_minus(){
  int a[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  int *p1 = &a[2];
  int *p2 = &a[8];
  printf("p2 - p1 = %ld\n", p2 - p1);
}

int main(){
  //not_init();
  //null_value();
  pointer_minus();
  return 0;
}
